package 
{
	import net.flashpunk.Entity;
	import net.flashpunk.utils.Draw;
	
	/**
	 * ...
	 * @author Felix Fleiß
	 */
	public class PowerLine extends Entity 
	{
		public var player:Player;
		public var power:Power;
		public var color:uint = 0x000099;
		public function PowerLine(_player:Player, _power:Power) {
			player = _player;
			power = _power;
		}
		override public function render():void 
		{
			super.render();
			Draw.linePlus(player.x, player.y, power.x, power.y, color, 1.0, Math.max(1000.0/player.distanceFrom(power),1));
		}
	}
	
}